package com.powernode.crm.settings.service.impl;

import com.powernode.crm.settings.mapper.UserMapper;
import com.powernode.crm.settings.model.User;
import com.powernode.crm.settings.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User queryUserByLoginActAndLoginPwd(String loginAct, String loginPwd) {
        return userMapper.selectUserByLoginActAndLoginPwd(loginAct,loginPwd);
    }

    @Override
    public List<User> queryAll() {
        return userMapper.selectAll();
    }
}
